package com.fjec.devops.controller;

import com.fjec.common.protocol.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fjec.devops.service.IStatOrderInfoService;

import javax.annotation.Resource;

/**
 * <p>
 * 017.统计-订单信息统计表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
@RestController
@RequestMapping("/")
public class StatOrderInfoController {

    @Resource
    private IStatOrderInfoService service;

    /**
     * 统计-订单信息统计
     * @return
     * @throws Exception
     */
    @GetMapping("/y/order/num")
    public JsonResult statOrderData() throws Exception{
        return service.statOrderData(15);
    }

    @RequestMapping("/y/order/fake/data")
    public JsonResult orderNumFakeData() throws Exception{
        return service.statOrderNumFakeData();
    }
}
